package com.umiwe.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

@Data
@TableName("umiwe_user")
@Accessors(chain = true)
public class UmiweUser {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 登陆账号
     */
    private String userName;

    /**
     * 登录时候输入的密码
     */
    private String password;


    /**
     * 钉钉登陆，获取openid
     */
    private String dingtalkId;


    private String unionid;

    private String openid;

    /**
     * 部门
     */
    private Integer departmentId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人
     */
    private Integer createUserId;
    /**
     * 修改人
     */
    private Integer updateUserId;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 用户状态 1=正常,2=锁定,3=离职
     */
    private Integer userStatus;

    /**
     * 1正常，2删除
     */
    @TableLogic
    private Integer isDelete;

    private String chinaUserName;

}
